package com.studyv3.test.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* lb_采购列表
* @TableName lb_products
*/
@TableName("lb_products")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelIgnoreUnannotated
public class Products implements Serializable {

    /**
    * 
    */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
    * 商品名
    */
    @ExcelProperty("商品名称")
    private String name;
    /**
    * 价格
    */
    @ExcelProperty("商品价格")
    private BigDecimal price;
    /**
    * 物品图片
    */
    private String imgUrl;
    /**
    * 
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
    * 
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
    * 商品类别
    */
    private Integer type;
    /**
    * 余量警戒值
    */
    @ExcelProperty("库存预警值")
    private Integer warnNum;
    /**
    * 有效天数
    */
    @ExcelProperty("有效天数")
    private Integer validDays;


}
